package com.psp.web.controller.springmvc.req;


import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * 更新邮箱
 **/
public class UpdateEmailParam {
	private String token; // token
	@NotEmpty(message = "邮箱不能为空")
	@Pattern(regexp = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$", message = "邮箱格式不正确！")
	private String email; // 邮箱地址
	@NotEmpty(message = "验证码不能为空！")
	@Pattern(regexp = "^([0-9]{4})$", message = "验证码格式不正确！")
	private String vcode; // 验证码

	public void setToken(String token) {
 		this.token = token;
	}

	public String getToken() {
 		return token;
	}

	public void setEmail(String email) {
 		this.email = email;
	}

	public String getEmail() {
 		return email;
	}

	public void setVcode(String vcode) {
 		this.vcode = vcode;
	}

	public String getVcode() {
 		return vcode;
	}

}
